import { createRouter, createWebHistory } from 'vue-router';
// 导入需要的组件
import App from '../App.vue';
import czml from '../views/czml.vue';

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import( '@/views/test.vue')
  },
  {
    path: '/czml',
    name: '卫星地球',
    component: czml
  },
  // {
  //   path: '/test',
  //   name: '卫星地球',
  //   component: () => import( '@/views/test.vue')
  // }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;